package asava.trees;

/**
 * @author Tim Richter
 */
public final class Import extends Tree {
    public Tree selector;
    public boolean demand;

    public Import(final Tree selector,
                  final boolean demand) {
        this.selector = selector;
        this.demand = demand;
    }

    @Override
    public int kind() {
        return TreeKind.IMPORT;
    }

    @Override
    public void accept(final TreeVisitor visitor) {
        visitor.visit(this);
    }
}
